package cn.gson.oasys.service.impl;


import cn.gson.oasys.mapper.AoaPositionMapper;
import cn.gson.oasys.pojo.AoaDept;
import cn.gson.oasys.pojo.AoaPosition;
import cn.gson.oasys.service.AoaPositionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zhangyu on 2020/11/27.
 */
@Service
public class AoapositionImpl implements AoaPositionService{
    @Resource
    private AoaPositionMapper aoaPositionMapper;

    @Override
    //增加部门
    public int addAoaPosition(AoaPosition aoaPosition) {
        return aoaPositionMapper.addAoaPosition(aoaPosition);
    }

    @Override
    //修改部门
    public int updateAoaPosition(AoaPosition aoaPosition) {
        return aoaPositionMapper.updateAoaPosition(aoaPosition);
    }

    @Override
    //查询所有部门 用于绑定部门
    public List<AoaDept> getAllAoaDept() {
        return aoaPositionMapper.getAllAoaDept();
    }

    @Override
    public List<AoaPosition> getALLAoaPosotion() {
        return aoaPositionMapper.getALLAoaPosotion();
    }

}

    ;
